package org.luxor.eshop.storage.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.luxor.commons.core.validator.group.Group;

import javax.validation.constraints.NotNull;

/**
 * 扣除库存
 *
 * @author Mr.Yan  @date: 2020/11/24
 */
@Data
public class DeductInventoryDto {

    @ApiModelProperty(value = "商品编号")
    @NotNull(message = "商品编号，不能为空", groups = Group.class)
    private String commodityCode;

    @ApiModelProperty(value = "扣减库存数量")
    @NotNull(message = "扣减库存数量，不能为空", groups = Group.class)
    private Integer quantity;
}
